<div class="modal-header">
    <div class="modal-title">{{record.id ? '编辑' : '新增'}}{{name}}</div>
  </div>
  <form nz-form #f="ngForm" se-container="1">
    <se label="{{name}}名称">
      <input type="text" nz-input [(ngModel)]="record.name" name="name" required maxlength="20">
    </se>
    <se label="编码">
      <input type="text" nz-input [(ngModel)]="record.permissionCode" name="permissionCode" required maxlength="20">
    </se>
    <se label="路由">
        <input type="text" nz-input [(ngModel)]="record.link" name="link">
      </se>
    <se label="描述">
      <textarea rows="4" nz-input [(ngModel)]="record.description" name="description"></textarea>
    </se>
  </form>
  <div class="modal-footer">
    <button nz-button type="button" (click)="close()">关闭</button>
    <button nz-button [disabled]="!f.form.valid || !f.form.dirty" [nzLoading]="http.loading" [nzType]="'primary'" nzGhost="true"(click)="save()">保存</button>
  </div>
  